package com.crape.common.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ExceptionController {

    @RequestMapping("/error.jsp")
    public String error(HttpServletRequest request) {
    	Exception exception = (Exception) request.getAttribute("exception");
    	exception.printStackTrace();
    	request.setAttribute("exception", exception);
        return "/error.html";
    }

}
